package com.cs.club.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cs.club.infra.basic.mapper.ClubAssetsMapper;
import com.cs.club.infra.basic.entity.ClubAssets;
import com.cs.club.infra.basic.service.ClubAssetsService;
import org.springframework.stereotype.Service;

/**
 * 社团资产表(ClubAssets)表服务实现类
 *
 * @author makejava
 * @since 2024-09-24 19:29:19
 */
@Service("clubAssetsService")
public class ClubAssetsServiceImpl extends ServiceImpl<ClubAssetsMapper, ClubAssets> implements ClubAssetsService {

    @Override
    public Boolean addClubAssets(ClubAssets clubAssets) {
        return save(clubAssets);
    }

    @Override
    public Boolean deleteClubAssets(ClubAssets clubAssets) {
        clubAssets.setIsDelete(1);
        return updateById(clubAssets);
    }

    @Override
    public Boolean updateClubAssets(ClubAssets clubAssets) {
        return updateById(clubAssets);
    }
}

